<?php

defined( 'PDNS_AUTH' ) or die( "Unauthorized" );

class logModel extends Model{
	function __construct( ){
	
	}

	function bind( $data ){
	}

	function store(){
	}

	function load(){
		$db = DB::getInstance();
		
		$query = "SELECT * FROM {$db->prefix}log ORDER BY `when` DESC LIMIT 100";
		$this->entries = $db->fetch_objects( $query );
	}
}
